package com.example.recuitactivity.bean;

import com.example.recuitactivity.helper.DbOpenHelper;
import com.example.recuitactivity.observe.AbstractSubject;

import java.util.ArrayList;
import java.util.List;

import javax.security.auth.Subject;

public class RecuitInfo extends AbstractSubject {
    private long id;
    private String recuitName;
    private String enterpriseName;
    private String salary;
    private String eduRequest;
    private String location;
    private String detail;
    private String scale;
    private String updateTime;


    public RecuitInfo() {
    }

    public RecuitInfo(String recuitName, String enterpriseName, String salary, String eduRequest, String location, String detail, String scale,String updateTime) {
        this.recuitName = recuitName;
        this.enterpriseName = enterpriseName;
        this.salary = salary;
        this.eduRequest = eduRequest;
        this.location = location;
        this.detail = detail;
        this.scale = scale;
        this.updateTime=updateTime;
    }

    public RecuitInfo( long id,String recuitName, String enterpriseName, String salary, String eduRequest, String location, String detail, String scale,String updateTime) {
        this.id=id;
        this.recuitName = recuitName;
        this.enterpriseName = enterpriseName;
        this.salary = salary;
        this.eduRequest = eduRequest;
        this.location = location;
        this.detail = detail;
        this.scale = scale;
        this.updateTime=updateTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRecuitName() {
        return recuitName;
    }

    public void setRecuitName(String recuitName) {
        this.recuitName = recuitName;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getEduRequest() {
        return eduRequest;
    }

    public void setEduRequest(String eduRequest) {
        this.eduRequest = eduRequest;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public void attachCandidates(Candidate candidate){
        objeactList.add(candidate);
    }

    public void detachCandidates(Candidate candidate){
        objeactList.remove(candidate);
    }
}
